/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-04-05     Administrator       the first version
 */
#ifndef APPLICATIONS_MQTT_MQTT_NET_H_
#define APPLICATIONS_MQTT_MQTT_NET_H_

#include <rtthread.h>

#endif /* APPLICATIONS_MQTT_MQTT_NET_H_ */

#ifdef PKG_USING_AT_DEVICE

#define ESP8266_DEIVCE_NAME             "esp0"
#define ESP8266_CLIENT_NAME             "uart1"
#define ESP8266_RECV_BUFF_LEN           2048


#define W5500_CS_GPIO                   GPIOA
#define W5500_CS_GPIO_PIN               GPIO_PIN_4
#define W5500_GPIO_CLK_ENABLE()         __HAL_RCC_GPIOA_CLK_ENABLE()

#define W5500_SPI                       "spi1"
#define W5500_SPI0                      "spi10"

uint8_t net_init(uint8_t net_type);
int net_is_connected();

#endif
